package day0926_3;

public class S1 implements  Comparable{
    String name;
    int age;

    public S1(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public int compareTo(Object o) {
        return  this.age-((S1)o).age;
    }
}
